extends Resource
class_name Item

enum ItemType {
	CONSUMABLE,  # 消耗品
	EQUIPMENT,   # 装备
	MATERIAL,    # 材料
	QUEST,       # 任务物品
	KEY          # 关键物品
}

@export var id: String = ""
@export var name: String = ""
@export var description: String = ""
@export var icon: Texture2D
@export var type: ItemType
@export var stackable: bool = true
@export var max_stack: int = 99

# 物品属性
@export var use_effect: String = ""  # 使用效果
@export var damage: float = 0.0      # 伤害值
@export var defense: float = 0.0     # 防御值
@export var heal_amount: float = 0.0  # 治疗量 
